import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Config from './config'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Vant from 'vant'
import 'vant/lib/index.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.min.css'
import baseApi from '@/api'
import { Toast, Dialog, Circle, Icon, PullRefresh } from 'vant'

Vue.use(Toast)
  .use(Dialog)
  .use(Circle)
  .use(Icon)
  .use(PullRefresh)

Vue.config.productionTip = false
Vue.prototype.$config = Config
Vue.prototype.$http = baseApi

Vue.use(Vant)
Vue.use(ElementUI)
Vue.use(VueAwesomeSwiper)

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
